package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 作者基本信息表(Author)实体类
 *
 * @author 杨丽辉
 * @since 2021-03-10 11:28:58
 */
@ApiModel("作者基本信息表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Author implements Serializable {
    private static final long serialVersionUID = -98418383486689502L;
        /**
    *主键
    * 作者id
    * isnull 1
    */
    @ApiModelProperty(value="作者id", position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String authorId;

    /**
    * 作者昵称
    * isnull 0
    */        @ApiModelProperty(value="作者昵称",position=2)
    private String authorNickname;
    /**
    * 作者简介
    * isnull 0
    */        @ApiModelProperty(value="作者简介",position=3)
    private String authorInfo;
    /**
    * 作者头像
    * isnull 0
    */        @ApiModelProperty(value="作者头像",position=4)
    private String authorImg;
    /**
    * 作者性别(0:男；1:女)
    * isnull 0
    */        @ApiModelProperty(value="作者性别(0:男；1:女)",position=5)
    private Integer authorSex;
    /**
    * 绑定手机号
    * isnull 0
    */        @ApiModelProperty(value="绑定手机号",position=6)
    private String authorPhone;
    /**
    * 绑定邮箱
    * isnull 0
    */        @ApiModelProperty(value="绑定邮箱",position=7)
    private String authorEmail;
    /**
    * 是否可以登录(0：可以；1：不可以)
    * isnull 0
    */        @ApiModelProperty(value="是否可以登录(0：可以；1：不可以)",position=8)
    private Integer aloginStatus;
    /**
    * 是否可以发言（0：可以；1：不可以）
    * isnull 0
    */        @ApiModelProperty(value="是否可以发言（0：可以；1：不可以）",position=9)
    private Integer acommentStatus;
    /**
    * 注册时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @ApiModelProperty(value="注册时间",position=10)
    private LocalDateTime aregistTime;
    /**
    * 更新时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="更新时间",position=11)
    private LocalDateTime updateTime;
    /**
    * 笔名修改次数（最多不超过3次）
    * isnull 0
    */        @ApiModelProperty(value="笔名修改次数（最多不超过3次）",position=12)
    private Integer updateCount;
    /**
    * 作者关注的人数量（默认为0）
    * isnull 0
    */        @ApiModelProperty(value="作者关注的人数量（默认为0）",position=13)
    private Integer attentionCount;
    /**
    * 读者数（默认为0）
    * isnull 0
    */        @ApiModelProperty(value="读者数（默认为0）",position=14)
    private Integer readerCount;
    /**
    * 作者总共码字数（默认为0）
    * isnull 0
    */        @ApiModelProperty(value="作者总共码字数（默认为0）",position=15)
    private Integer totalWords;
            @ApiModelProperty(value="$column.comment",position=16)
    private String bookshelfId;
        
    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }
        
    public String getAuthorNickname() {
        return authorNickname;
    }

    public void setAuthorNickname(String authorNickname) {
        this.authorNickname = authorNickname;
    }
        
    public String getAuthorInfo() {
        return authorInfo;
    }

    public void setAuthorInfo(String authorInfo) {
        this.authorInfo = authorInfo;
    }
        
    public String getAuthorImg() {
        return authorImg;
    }

    public void setAuthorImg(String authorImg) {
        this.authorImg = authorImg;
    }
        
    public Integer getAuthorSex() {
        return authorSex;
    }

    public void setAuthorSex(Integer authorSex) {
        this.authorSex = authorSex;
    }
        
    public String getAuthorPhone() {
        return authorPhone;
    }

    public void setAuthorPhone(String authorPhone) {
        this.authorPhone = authorPhone;
    }
        
    public String getAuthorEmail() {
        return authorEmail;
    }

    public void setAuthorEmail(String authorEmail) {
        this.authorEmail = authorEmail;
    }
        
    public Integer getAloginStatus() {
        return aloginStatus;
    }

    public void setAloginStatus(Integer aloginStatus) {
        this.aloginStatus = aloginStatus;
    }
        
    public Integer getAcommentStatus() {
        return acommentStatus;
    }

    public void setAcommentStatus(Integer acommentStatus) {
        this.acommentStatus = acommentStatus;
    }
        
    public LocalDateTime getAregistTime() {
        return aregistTime;
    }

    public void setAregistTime(LocalDateTime aregistTime) {
        this.aregistTime = aregistTime;
    }
        
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
        
    public Integer getUpdateCount() {
        return updateCount;
    }

    public void setUpdateCount(Integer updateCount) {
        this.updateCount = updateCount;
    }
        
    public Integer getAttentionCount() {
        return attentionCount;
    }

    public void setAttentionCount(Integer attentionCount) {
        this.attentionCount = attentionCount;
    }
        
    public Integer getReaderCount() {
        return readerCount;
    }

    public void setReaderCount(Integer readerCount) {
        this.readerCount = readerCount;
    }
        
    public Integer getTotalWords() {
        return totalWords;
    }

    public void setTotalWords(Integer totalWords) {
        this.totalWords = totalWords;
    }
        
    public String getBookshelfId() {
        return bookshelfId;
    }

    public void setBookshelfId(String bookshelfId) {
        this.bookshelfId = bookshelfId;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"authorId\":" + authorId +
                                  " ,\"authorNickname\":" + authorNickname +
                            " ,\"authorInfo\":" + authorInfo +
                            " ,\"authorImg\":" + authorImg +
                            " ,\"authorSex\":" + authorSex +
                            " ,\"authorPhone\":" + authorPhone +
                            " ,\"authorEmail\":" + authorEmail +
                            " ,\"aloginStatus\":" + aloginStatus +
                            " ,\"acommentStatus\":" + acommentStatus +
                            " ,\"aregistTime\":" + aregistTime +
                            " ,\"updateTime\":" + updateTime +
                            " ,\"updateCount\":" + updateCount +
                            " ,\"attentionCount\":" + attentionCount +
                            " ,\"readerCount\":" + readerCount +
                            " ,\"totalWords\":" + totalWords +
                            " ,\"bookshelfId\":" + bookshelfId +
                  '}';
    }


}
